<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <title>智联同城——小程序管理系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="apple-mobile-web-app-status-bar-style" content="black"> 
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="format-detection" content="telephone=no">
  
  <link rel="stylesheet" href="/Public/layui/css/layui.css"  media="all">
  <style type="text/css">
  
  </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo">智联同城</div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <li class="layui-nav-item layui-this"><a href="<?php echo U('Index/index');?>">首页</a></li>
      <li class="layui-nav-item"><a href="<?php echo U('InfoCate/index');?>">分类信息管理</a></li>
      <li class="layui-nav-item"><a href="<?php echo U('ShopCate/index');?>">好店管理</a></li>
      <li class="layui-nav-item"><a href="<?php echo U('Quan/index');?>">同城圈管理</a></li>
      <li class="layui-nav-item"><a href="<?php echo U('Member/index');?>">用户管理</a></li>
      <li class="layui-nav-item"><a href="<?php echo U('Home/Index/index');?>">切换小程序</a></li>
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="<?php echo ($_SESSION['wechat']['headimg']); ?>" class="layui-nav-img">
          <?php echo ($_SESSION['wechat']['nickname']); ?>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="<?php echo U('Home/Index/index');?>">切换小程序</a></dd>
          <!-- <dd><a href="">安全设置</a></dd> -->
        </dl>
      </li>
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="<?php echo (session('headimgurl')); ?>" class="layui-nav-img">
          <?php echo (session('nickname')); ?>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="<?php echo U('Home/Public/logout');?>">退出登录</a></dd>
          <!-- <dd><a href="">安全设置</a></dd> -->
        </dl>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item"><a href="<?php echo U('Index/index');?>">数据统计</a></li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">店铺装修</a>
          <dl class="layui-nav-child">
            <dd class=""><a href="<?php echo U('Adv/shopAdv',array('status'=>0));?>">&nbsp;&nbsp;&nbsp;&nbsp;开屏广告</a></dd>
            <dd class=""><a href="<?php echo U('Adv/homeFlash',array('status'=>1));?>">&nbsp;&nbsp;&nbsp;&nbsp;首页轮播展示</a></dd>
              <dd class=""><a href="<?php echo U('Index/modular');?>">&nbsp;&nbsp;&nbsp;&nbsp;首页模块管理</a></dd>
              <dd class=""><a href="<?php echo U('Index/cateNav');?>">&nbsp;&nbsp;&nbsp;&nbsp;首页顶部导航管理</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;">商家提现审核</a>
          <dl class="layui-nav-child">
            <dd class=""><a href="<?php echo U('Withdraw/index',array('status'=>0));?>">待审核</a></dd>
            <dd><a href="<?php echo U('Withdraw/index',array('status'=>1));?>">待打款</a></dd>
            <dd><a href="<?php echo U('Withdraw/index',array('status'=>2));?>">已打款</a></dd>
            <dd><a href="<?php echo U('Withdraw/index',array('status'=>3));?>">失效</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item "><a href="<?php echo U('Index/refundlist');?>">拼团退款记录</a></li>
        <li class="layui-nav-item layui-this"><a href="<?php echo U('Index/gobal');?>">全局配置</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Join/index');?>">商家入驻费</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Top/index');?>">置顶收费</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Adv/index');?>">广告管理</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Index/pay');?>">支付配置</a></li>
        <li class="layui-nav-item "><a href="<?php echo U('Index/template');?>">模板消息设置</a></li>
        <li class="layui-nav-item"><a href="<?php echo U('Index/fabu');?>">小程序发布</a></li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding:0 15px;">
      <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>全局配置</legend>
      </fieldset>
       
      <form class="layui-form" action="">
        <div class="layui-form-item">
          <label class="layui-form-label">AppID</label>
          <div class="layui-input-block">
            <input type="text" name="appid" lay-verify="required" autocomplete="off" placeholder="请输入AppID" class="layui-input" value="<?php echo ($info["appid"]); ?>">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">AppSecret</label>
          <div class="layui-input-block">
            <input type="text" name="app_secret" lay-verify="required" placeholder="请输入AppSecret" autocomplete="off" class="layui-input" value="<?php echo ($info["app_secret"]); ?>">
          </div>
        </div>
        <div class="layui-form-item three">
          <label class="layui-form-label">服务区域</label>
          <div class="layui-input-inline">
            <select id="sheng" name="sheng">
              <option value="0">全国</option>
            </select>
          </div>
          <div class="shi_box layui-input-inline">
            <select id="shi" name="shi">
              <option value="0">全省</option>
            </select>
          </div>
          <div class="xian_box layui-input-inline">
            <select id="xian" name="xian">
              <option value="0">全市</option>
            </select>
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">发帖收费（元/条）</label>
          <div class="layui-input-block">
            <input type="number" name="tongcheng_fee" lay-verify="required" placeholder="请输入发帖收费" autocomplete="off" step="0.01" class="layui-input" value="<?php echo ($info["tongcheng_fee"]); ?>">
          </div>
        </div>
        <!--<div class="layui-form-item">-->
          <!--<label class="layui-form-label">商家入驻费</label>-->
          <!--<div class="layui-input-block">-->
            <!--<input type="number" name="shop_fee" lay-verify="required" placeholder="请输入商家入驻费" autocomplete="off" class="layui-input" value="<?php echo ($info["shop_fee"]); ?>">-->
          <!--</div>-->
        <!--</div>-->
        <div class="layui-form-item">
          <label class="layui-form-label">商家佣金比例（%）</label>
          <div class="layui-input-block">
            <input type="number" name="yong" lay-verify="required" placeholder="请输入商家佣金比例" autocomplete="off" class="layui-input" value="<?php echo ($info["yong"]); ?>">
          </div>
        </div>
        <div class="layui-form-item">
          <label class="layui-form-label">商家提现抽成比例（%）</label>
          <div class="layui-input-block">
            <input type="number" name="withdraw_rate" lay-verify="required" placeholder="请输入商家提现抽成比例" autocomplete="off" class="layui-input" value="<?php echo ($info["withdraw_rate"]); ?>">
          </div>
        </div>
        <div class="layui-form-item">
          <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" lay-filter="*">立即提交</button>
            <!-- <button type="reset" class="layui-btn layui-btn-primary">重置</button> -->
          </div>
        </div>
      </form>
    </div>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    © 2017-2018 <a href="https://www.58zltc.com" target="_blank">智联同城</a> All Rights Reserved.
  </div>
</div>
<script src="/Public/layui/layui.js" charset="utf-8"></script>
<script>
layui.extend({
  areas: '/Public/layui/lay/modules/areas' // {/}的意思即代表采用自有路径，即不跟随 base 路径
})
//JavaScript代码区域
layui.use(['element','form','areas'], function(){
  var element = layui.element
  ,$ = layui.jquery
  ,layer = layui.layer
  ,form = layui.form
  ,areas = layui.areas;
  
  areas.init({
      elem: ".three",
      data: "/Public/layui/lay/modules/areas.json",
      level: 3,
      provFilter: "sheng",   //省份过滤器
      cityFilter: "shi",   //城市过滤器
      distFilter: "xian",   //区县过滤器
      streetFilter: "street", //街道过滤器
      defaults: <?php echo ($arr); ?>,   //默认选中值
  });

  form.on('submit(*)', function(data){
    $.post('#', data.field, function(e) {
      layer.alert(e.info);
    });
    return false;
  });
});
</script>
</body>
</html>